{{include file='home/header.tpl'}}
<div id="main">
	<div class="container">
	{{if !empty($block)}}
		{{include file='home/sidebar-training.tpl'}}
	{{else}}
		{{assign var="block" value=""}}
		{{include file='home/sidebar-training.tpl'}}
	{{/if}}
		<div class="main-right">
			<div class="main-title">
				<h1>{{h($data.0.CateName)}}</h1>
				{{include file='home/crumbs.tpl'}}
			</div>
			<div class="main-content">
				<div class="article-body" style="margin-top:0;">
					{{foreach $reply as $v}}
					<div class="message">
						<img src="{{base_url()}}/Public/img/photo.png" class="photo">
						<div class="message-container">
							<p>
								<span>{{if $v.aid == 0}}机械电子工程学院{{else}}{{$v.name}}{{/if}}&nbsp;&nbsp;&nbsp;|</span>
								<span>&nbsp;&nbsp;&nbsp;{{date('Y-m-d',$v.time)}}</span>
							</p>
							<p class="message-content">{{$v.content}}</p>
						</div>
					</div>
					{{/foreach}}
					<form action="{{site_url('/home/messageReply')}}" method="post" class="message-reply">
						<p>
							<span style="margin-right:10px;">留言</span>
							<a href="{{site_url("home/Judge?Id=108")}}">登录</a>
							<a href="{{site_url("home/Judge?Id=107")}}">注册</a>
							<span class="message-note">注：您的留言将在审核后显示</span>
						</p>
						<textarea name="message_content"></textarea>
						<input type="submit" value="提交" class="submit" />
						<input type="hidden" name="message_pid" value="{{$message_id}}" />
					</form>
				</div>
				<div class="page-footer">
				</div>
			</div>
		</div>
	</div>
</div>
{{include file='home/footer.tpl'}}